
/**
  ******************************************************************************
  * @file    mesh_router_common.h
  * @author  zhuang
  * @version 1.0.0
  * @date    2021/1/20
  * @brief   
  ******************************************************************************
  * @attention
  *
  *
  ******************************************************************************
  */ 
#pragma once
#include "mdf_common.h"

//#define MESH_SEND_BLOCK_TIME  (300)

/*
extern TaskHandle_t g_root_write_task_handle;
extern TaskHandle_t g_root_read_task_handle;
#ifdef CONFIG_MQTT_ENABLE
extern TaskHandle_t g_root_mqtt_read_task_handle;
#endif
*/

/*
void root_write_task(void *arg);
void root_read_task(void *arg);
void root_mqtt_read_task(void *arg);
*/
mdf_err_t mesh_root_task_init();
mdf_err_t mesh_root_task_deinit();
mdf_err_t mqtt_heartbeat_send(void);
void espnow_to_mwifi_task(void *arg);
void trigger_timming_handle(time_t nowtime);
int mlink_mqtt_write(char **data, int size);

void mlink_handle_request_noresp_task(void *arg);

